cn = Spree::Country.find_by!(iso: "CN")
beijing = Spree::State.find_by!(name: "Beijing")
shanghai = Spree::State.find_by!(name: "Shanghai")

# 生成两个随机地址
Spree::Address.create!(
    firstname: "胡",
    lastname: "萝卜",
    address1: "九亭镇虬泾路900弄13号101室",
    address2: "",
    city: "上海",
    state: shanghai,
    zipcode: 200000,
    country: cn,
    phone: "18600001111")

Spree::Address.create!(
    firstname: FFaker::Name.first_name,
    lastname: FFaker::Name.last_name,
    address1: FFaker::Address.street_address,
    address2: FFaker::Address.secondary_address,
    city: FFaker::Address.city,
    state: beijing,
    zipcode: 100000,
    country: cn,
    phone: FFaker::PhoneNumber.phone_number)